package com.leyou.page.handler;

import com.leyou.page.vo.BrandVO;
import org.springframework.stereotype.Component;
import top.javatool.canal.client.annotation.CanalTable;
import top.javatool.canal.client.handler.EntryHandler;

/**
 * @author 虎哥
 */
@CanalTable(value = "tb_brand")
@Component
public class BrandHandler implements EntryHandler<BrandVO> {

    @Override
    public void insert(BrandVO brandVO) {
        System.out.println("brandVO = " + brandVO);
    }

    @Override
    public void update(BrandVO before, BrandVO after) {
        System.out.println("brandVO = " + before);
        System.out.println("brandVO = " + after);
    }

    @Override
    public void delete(BrandVO brandVO) {
        System.out.println("brandVO = " + brandVO);
    }
}
